package com.easpeed.comon.bean

import android.graphics.Bitmap
import java.util.UUID

class PhotoBean {
    var id: String? = null

    init {
        id = UUID.randomUUID().toString()
    }


    var isDefault = false

    var bitmap: Bitmap? = null


    var imageUrl: String? = null
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as PhotoBean

        return id == other.id
    }

    override fun hashCode(): Int {
        return id?.hashCode() ?: 0
    }

    override fun toString(): String {
        return "PhotoBean(id=$id, isDefault=$isDefault)"
    }


}